/**
 * Created by Apple on 2017/7/26.
 */
alert("能出现")
window.onload = function () {
    let qx = document.getElementsByName("qx")[0];
    let bx = document.getElementsByName("bx")[0];
    let fx = document.getElementsByName("fx")[0];
    let aa = document.getElementsByName("ch");
    console.log(aa.length)
    qx.onclick = function () {
        let isTrue = qx.checked
        bx.checked = false
        fx.checked = false
        for (let i = 0; i < aa.length; i++) {
            aa[i].checked = isTrue;
        }
    }

    bx.onclick = function () {
        qx.checked = false
        fx.checked = false
        for (var i = 0; i < aa.length; i++) {
            aa[i].checked = false;
        }
    }
    fx.onclick = function () {
        qx.checked = false
        bx.checked = false
        for (var i = 0; i < aa.length; i++) {
            if (aa[i].checked == true) {
                aa[i].checked = false;
            } else {
                aa[i].checked = true;
            }
        }
    }
}